package com.bw.educate.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bw.educate.entity.EduPayLog;
import com.bw.educate.mapper.EduPayLogMapper;
import com.bw.educate.service.IEduPayLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 在线教育-五组
 * @since 2020-08-13
 */
@Service
public class EduPayLogServiceImpl extends ServiceImpl<EduPayLogMapper, EduPayLog> implements IEduPayLogService {


    @Autowired
    private EduPayLogMapper eduPayLogMapper;


    @Override
    public List<EduPayLog> listOrder(Long uid) {
        QueryWrapper queryWrapper=new QueryWrapper();
        queryWrapper.eq("suid",uid);
        return eduPayLogMapper.selectList(queryWrapper);
    }
}
